package com.ruoyi.index_message.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 首页资讯对象 index_message_info
 * 
 * @author zbz
 * @date 2024-04-22
 */
public class IndexMessageInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 来源 */
    @Excel(name = "来源")
    private String source;

    /** 图片 */
    @Excel(name = "图片")
    private String img;

    /** 时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date releaseTime;

    /** 正文 */
    @Excel(name = "正文")
    private String mainBody;

    /** 点击量 */
    @Excel(name = "点击量")
    private Integer clickNum;

    /** 点赞量 */
    @Excel(name = "点赞量")
    private Integer ilikeNum;

    /** 新增时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "新增时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date addtime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setSource(String source) 
    {
        this.source = source;
    }

    public String getSource() 
    {
        return source;
    }
    public void setImg(String img) 
    {
        this.img = img;
    }

    public String getImg() 
    {
        return img;
    }
    public void setReleaseTime(Date releaseTime) 
    {
        this.releaseTime = releaseTime;
    }

    public Date getReleaseTime() 
    {
        return releaseTime;
    }
    public void setMainBody(String mainBody) 
    {
        this.mainBody = mainBody;
    }

    public String getMainBody() 
    {
        return mainBody;
    }
    public void setClickNum(Integer clickNum) 
    {
        this.clickNum = clickNum;
    }

    public Integer getClickNum() 
    {
        return clickNum;
    }
    public void setIlikeNum(Integer ilikeNum) 
    {
        this.ilikeNum = ilikeNum;
    }

    public Integer getIlikeNum() 
    {
        return ilikeNum;
    }
    public void setAddtime(Date addtime) 
    {
        this.addtime = addtime;
    }

    public Date getAddtime() 
    {
        return addtime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("source", getSource())
            .append("img", getImg())
            .append("releaseTime", getReleaseTime())
            .append("mainBody", getMainBody())
            .append("clickNum", getClickNum())
            .append("ilikeNum", getIlikeNum())
            .append("addtime", getAddtime())
            .toString();
    }
}
